<html>
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
      <link rel="stylesheet" href="./../../helpwin.css">
      <title>MATLAB File Help: prtPreProcZmuv/prtPreProcZmuv</title>
   </head>
   <body>
      <!--Single-page help-->
      <table border="0" cellspacing="0" width="100%">
         <tr class="subheader">
            <td class="headertitle">MATLAB File Help: prtPreProcZmuv/prtPreProcZmuv</td>
            
            
         </tr>
      </table>
      <div class="title">prtPreProcZmuv/prtPreProcZmuv</div>
      <div class="helptext"><pre><!--helptext -->  <span class="helptopic">prtPreProcZmuv</span>   Zero mean unit variance processing
 
    ZMUV = <span class="helptopic">prtPreProcZmuv</span> creates a zero mean unit variance pre
    processing object. A <span class="helptopic">prtPreProcZmuv</span> object processes the input data
    so that it has zero mean and unit variance.  Use TRAIN to determine
    the parameters of the ZMUV object:
  
    zmuv = <span class="helptopic">prtPreProcZmuv</span>;
    zmuv = zmuv.train(ds); 
 
    And use RUN to process a data set:
 
    dsPreProc = zmuv.run(ds);
 
    A <span class="helptopic">prtPreProcZmuv</span> object also inherits all properties and functions from
    the prtAction class
 
    Example:
 
    dataSet = prtDataGenIris;       % Load a data set.
    dataSet = dataSet.retainFeatures(1:2);
    zmuv = <span class="helptopic">prtPreProcZmuv</span>;           % Create a zero-mean unit variance
                                     % object
    zmuv = zmuv.train(dataSet);      % Compute the mean and variance
    dataSetNew = zmuv.run(dataSet);  % Normalize the data
  
    % Plot
    subplot(2,1,1); plot(dataSet);
    title(sprintf('Mean: %s; Stdev: %s',mat2str(mean(dataSet.getObservations),2),mat2str(std(dataSet.getObservations),2)))
    subplot(2,1,2); plot(dataSetNew);
    title(sprintf('Mean: %s; Stdev: %s',mat2str(mean(dataSetNew.getObservations),2),mat2str(std(dataSetNew.getObservations),2)))</pre></div><!--after help --><!--seeAlso--><div class="footerlinktitle">See Also</div><div class="footerlink"> <a href="./../prtPreProc.html">prtPreProc</a>, <a href="./../prtPreProcPca.html">prtPreProcPca</a>, <a href="./../prtPreProcPls.html">prtPreProcPls</a>,
    <a href="./../prtPreProcHistEq.html">prtPreProcHistEq</a>, <a href="./../prtPreProcZeroMeanColumns.html">prtPreProcZeroMeanColumns</a>, <a href="./../prtPreProcLda.html">prtPreProcLda</a>,
    <a href="./../prtPreProcZeroMeanRows.html">prtPreProcZeroMeanRows</a>, <a href="./../prtPreProcLogDisc.html">prtPreProcLogDisc</a>, <a href="./../prtPreProcZmuv.html">prtPreProcZmuv</a>,
    <a href="./../prtPreProcMinMaxRows.html">prtPreProcMinMaxRows</a> 
</div>
   </body>
</html>